import { makeAutoObservable } from 'mobx'
import { getTrainingsCardInfo } from './api'

class Store {
    /** 实训模块 */
    moduleList = []

    constructor() {
        makeAutoObservable(this)
    }

    /** 获取实训卡片 */
    getCardInfo = () => {
        getTrainingsCardInfo().then(res => {
            this.moduleList = res.data
        })
    }
}
export default Store
